package com.service.impl;

import java.util.List;



import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dao.mapper.PersonDao;
import com.domain.Person;
import com.service.PersonService;
@Service(value="personService")
public class PersonServiceImpl implements PersonService{
    @Autowired
	public PersonDao personDao;
    
    public List<Person> getPerson(){
    	return personDao.getPerson();
    }

	@Override
	public int save(Person person) {
		personDao.save(person);
		return 0;
	}
}
